//
//  DDHomeBannerPageControlView.h
//  DYD
//
//  Created by 邱明 on 2018/2/23.
//  Copyright © 2018年 Diyidan. All rights reserved.
//

#import <UIKit/UIKit.h>

@class DDHomeBannerPageControlView;

@protocol DDHomeBannerPageControlViewDataSource <NSObject>

- (NSInteger)numberOfItemInPageControl:(DDHomeBannerPageControlView *)pageControl;
- (NSInteger)indexOfCurrentSelectItemInPageControl:(DDHomeBannerPageControlView *)pageControl;

@end

@interface DDHomeBannerPageControlView : UIView

@property (nonatomic, weak) id<DDHomeBannerPageControlViewDataSource> dataSource;

- (void)reloadData;
- (void)selectAtIndex:(NSInteger)index;

/** 选中的颜色 */
@property (nonatomic, strong) UIColor *selectedColor;
/** 未选中的颜色 */
@property (nonatomic, strong) UIColor *noSelectedColor;
/** 是不是空心的 */
@property (nonatomic, assign, getter=isHollow) BOOL hollow;

@end
